package com.aspose.cells;

class zaje {
   private String a;
   private zaul b;
   private zauk c;
   private Workbook d;
   private com.aspose.cells.a.f.zi e;
   private zoz f;

   zaje(zoz var1, zauk var2, String var3, com.aspose.cells.a.f.zi var4) {
      this.f = var1;
      this.a = var3;
      this.b = var1.a.getWorksheets().U();
      this.c = var2;
      this.d = var1.a;
      this.e = var4;
   }

   void a(zcfw var1) throws Exception {
      int var2 = 0;
      if (this.c.n != null) {
         this.c.n.a();
      }

      try {
         this.b(var1);
         if (!var1.n()) {
            var1.d();

            while(true) {
               while(var1.r() != 4) {
                  var1.j();
                  if ("r".equals(var1.p()) && var1.r() == 1) {
                     this.a(var1, var2);
                     ++var2;
                  } else {
                     var1.a();
                  }
               }

               return;
            }
         }
      } catch (Exception var4) {
         ;
      }
   }

   private void a(zcfw var1, int var2) throws Exception {
      int var3 = 0;
      if (var1.n()) {
         var1.a();
      } else {
         var1.d();

         while(true) {
            while(var1.r() != 4) {
               var1.j();
               if ("x".equals(var1.p()) && var1.r() == 1) {
                  if (this.c.n != null && var2 < this.c.n.a.size() && var3 < ((Object[])((Object[])this.c.n.a.get(var2))).length) {
                     ((Object[])((Object[])this.c.n.a.get(var2)))[var3] = zase.C(var1.a("v"));
                     ++var3;
                  }

                  var1.a();
               } else if ("s".equals(var1.p()) && var1.r() == 1) {
                  if (this.c.n != null && var2 < this.c.n.a.size() && var3 < ((Object[])((Object[])this.c.n.a.get(var2))).length) {
                     ((Object[])((Object[])this.c.n.a.get(var2)))[var3] = var1.a("v");
                     ++var3;
                  }

                  var1.a();
               } else if ("n".equals(var1.p()) && var1.r() == 1) {
                  if (this.c.n != null && var2 < this.c.n.a.size() && var3 < ((Object[])((Object[])this.c.n.a.get(var2))).length) {
                     String var4 = var1.a("v");
                     if (zapb.b(var4)) {
                        ((Object[])((Object[])this.c.n.a.get(var2)))[var3] = zase.B(var4);
                        ++var3;
                     } else {
                        ((Object[])((Object[])this.c.n.a.get(var2)))[var3] = 0;
                        ++var3;
                     }
                  }

                  var1.a();
               } else if ("d".equals(var1.p()) && var1.r() == 1) {
                  if (this.c.n != null && var2 < this.c.n.a.size() && var3 < ((Object[])((Object[])this.c.n.a.get(var2))).length) {
                     ((Object[])((Object[])this.c.n.a.get(var2)))[var3] = com.aspose.cells.b.a.ze.h(var1.a("v"));
                     ++var3;
                  }

                  var1.a();
               } else if ("b".equals(var1.p()) && var1.r() == 1) {
                  if (this.c.n != null && var2 < this.c.n.a.size() && var3 < ((Object[])((Object[])this.c.n.a.get(var2))).length) {
                     ((Object[])((Object[])this.c.n.a.get(var2)))[var3] = "1".equals(var1.a("v"));
                     ++var3;
                  }

                  var1.a();
               } else if ("m".equals(var1.p()) && var1.r() == 1) {
                  if (this.c.n != null && var2 < this.c.n.a.size() && var3 < ((Object[])((Object[])this.c.n.a.get(var2))).length) {
                     ((Object[])((Object[])this.c.n.a.get(var2)))[var3] = null;
                     ++var3;
                  }

                  var1.a();
               } else {
                  var1.a();
               }
            }

            var1.h();
            return;
         }
      }
   }

   private void b(zcfw var1) throws Exception {
      var1.j();
      if (var1.r() != 1 || !"pivotCacheRecords".equals(var1.p())) {
         throw new IllegalStateException("pivotCacheRecords root element eror");
      }
   }
}
